import { createSSRApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import RouterGuard from '@/router/router-guard';
import App from './App.vue';
// @ts-ignore
import uView from '@/uni_modules/vk-uview-ui';
import * as Pinia from 'pinia';
// 全局路由守卫
RouterGuard();
export function createApp() {
	const app = createSSRApp(App);
	app.use(ElementPlus)
	app.use(uView)
	app.use(Pinia.createPinia())
	return {
		app,
		Pinia
	};
}
